package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.FeeType;
import com.antdesignbackend.backend.entity.entityVo.FeeTypeVo;
import com.antdesignbackend.backend.mapper.FeeTypeMapper;
import com.antdesignbackend.backend.service.FeeTypeService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FeeTypeServiceImpl extends ServiceImpl<FeeTypeMapper, FeeType> implements FeeTypeService {
    @Autowired
    private FeeTypeMapper feeTypeMapper;
    @Override
    public List<FeeTypeVo> search(QueryWrapper<FeeTypeVo> queryWrapper, Page<FeeTypeVo> page) {
        return feeTypeMapper.search(queryWrapper, page);
    }
    @Override
    public Integer count(QueryWrapper<FeeTypeVo> queryWrapper) {
        return feeTypeMapper.count(queryWrapper);
    }

}
